<?php

require 'Response.php';
require 'DB.php';



$id=$_REQUEST['id'];

$pdo=DB::getInstance()->connect();


//3、删除
$sql="DELETE FROM `equipment` WHERE id=$id;";
//var_dump($sql);
$count=$pdo->exec($sql);
if($count>=1){
    echo "<script>alert('删除成功！');</script>>";
}else{
    echo "<script>alert('没有权限删除！');</script>>";
}

Response::json('200','删除成功',$data);
